import model.User;

import java.lang.reflect.Field;

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello World");

        User user = new User();
        user.setAge(1);
        user.setName("123");

        try {
            Class<?> clazz = User.class;
            System.out.println(clazz);
            Field filed = clazz.getDeclaredField("name");
            filed.setAccessible(true);
            Object value = filed.get(user);
            System.out.println(value);
            filed.set(user, "321");
            System.out.println(filed.get(user));

        } catch (Exception e) {
            e.printStackTrace();
        }

    }


}
